package com.example.boot.service

import org.springframework.stereotype.Service

@Service
class AccountServiceImpl : AccountService {
    override fun checkAccounts(accounts: MutableList<Int>): MutableMap<Int, String> {
        val result = mutableMapOf<Int, String>()
        accounts.forEach {
            if (it > 11) {
                result.put(it, "some reasons")
            } else {
                result.put(it, "valid account")
            }
        }
        return result
    }
}